    <div id="toolbar-box">
      <div class="t">
        <div class="t">
          <div class="t"></div>
        </div>
      </div>
      <div class="m">
        <div id="toolbar" class="toolbar">
            <table class="toolbar"><tbody><tr>
                    <td id="toolbar-save" class="button"><a class="toolbar" onClick="javascript: submitbutton('save'); return false;" href="javascript:void(0);"> <span title="Save" class="icon-32-save"> </span> Save </a> </td>
                    <td id="toolbar-cancel" class="button"><a class="toolbar" onClick="javascript: submitbutton('cancel'); return false;" href="javascript:void(0);"> <span title="Cancel" class="icon-32-cancel"> </span> Cancel </a> </td>
            </tr></tbody></table>
        </div>
        <div class="header icon-48-user">Tạo mới sản phẩm</div>
        <div class="clr"></div>
      </div>
      <div class="b">
        <div class="b">
          <div class="b"></div>
        </div>
      </div>
    </div>
    <div class="clr"></div>
<div id="submenu-box">
  <div class="t">
    <div class="t">
      <div class="t"></div>
    </div>
  </div>
  <div class="m">
    <ul id="submenu">
      <li> <a class="active" href="<?php echo $this->Html->url(array('controller'=>'news', 'action'=>'index')); ?>">Tin tức</a> </li>
      <li> <a href="<?php echo $this->Html->url(array('controller'=>'news_categories', 'action'=>'index')); ?>">Danh mục Tin tức</a> </li>
    </ul>
    <div class="clr"></div>
  </div>
  <div class="b">
    <div class="b">
      <div class="b"></div>
    </div>
  </div>
</div>
    <div id="element-box">
      <div class="t">
        <div class="t">
          <div class="t"></div>
        </div>
      </div>
      <div class="m">
    <script language="javascript" type="text/javascript">
            function submitbutton(pressbutton) {
                    var form = document.adminForm;
                    if (pressbutton == 'cancel') {
                            submitform( pressbutton );
                            return;
                    }
                    if(pressbutton == 'save'){
                        if($('#NewsTitle').val() == ''){
                            h3l_show_alert($('#NewsTitle'), 'Vui lòng nhập title');
                            $('#NewsTitle').focus();
                            return;
                        }
                        if($('#NewsShortContent').val() == ''){
                            h3l_show_alert($('#NewsShortContent'), 'Vui lòng nhập ghi chú');
                            $('#NewsShortContent').focus();
                            return;
                        }

                    }
                    submitform( pressbutton );
            }
    </script>
    <?php echo $this->Form->create('News', array('type'=>'file', 'style'=> 'clear: both;', 'name'=>'adminForm', 'id'=>'adminForm')); ?>
      <div class="col">
        <fieldset class="adminform">
        <legend>User Details</legend>
        <table cellspacing="1" class="admintable">
          <tbody>
            <tr>
              <td width="150" class="key"><label for="title"> title </label>
              </td>
              <td>
                    <?php echo $this->Form->input('title', array('class'=>'inputbox', 'size'=> 40, 'label'=> false)); ?>
              </td>
            </tr>

            <tr>
              <td width="150" class="key"><label for="published"> Published </label>
              </td>
              <td>
                    <?php echo $this->Form->radio('published', array('1'=> 'Yes', 0=>'No'), array('legend'=>false,'default'=> '1')); ?>
              </td>
            </tr>
            <tr>
              <td width="150" class="key"><label for="hot_news">Tin nổi bật</label>
              </td>
              <td>
                    <?php echo $this->Form->radio('hot_news', array('1'=> 'Yes', 0=>'No'), array('legend'=>false,'default'=> '0')); ?>
              </td>
            </tr>
            <tr>
              <td width="150" class="key"><label for="special_news">Tin đặc biệt</label>
              </td>
              <td>
                    <?php echo $this->Form->radio('special_news', array('1'=> 'Yes', 0=>'No'), array('legend'=>false,'default'=> '0')); ?>
              </td>
            </tr>
            <tr>
              <td width="150" class="key"><label for="parent_id"> Danh mục</label>
              </td>
              <td>
                    <?php
                    echo $this->Form->select('cat_id', $cat_list,array('empty'=> false,'secure'=>true));
                    ?>
              </td>
            </tr>
           <tr>
              <td width="150" class="key"><label for="short_content">Note: </label>
              </td>
              <td>
                    <?php echo $this->Form->input('short_content', array('class'=>'inputbox', 'cols'=> 80, 'label'=> false, 'type'=>'textarea')); ?>
              </td>
            </tr>
            <tr>
              <td width="150" class="key"><label for="thumbnail">Thumbnail (132x99) </label>
              </td>
              <td>
                    <?php echo $this->Form->input('thumbnail', array('type'=>'file', 'class'=>'inputbox', 'size'=> 40, 'label'=> false)); ?>
              </td>
            </tr>
            <tr>
              <td width="150" class="key"><label for="thumbnail_small">Thumbnail nhỏ (88x58)</label>
              </td>
              <td>
                    <?php echo $this->Form->input('thumbnail_small', array('type'=>'file', 'class'=>'inputbox', 'size'=> 40, 'label'=> false)); ?>
              </td>
            </tr>
            <tr>
              <td width="150" class="key"><label for="thumbnail_slideshow">Thumbnail lớn (365x280)</label>
              </td>
              <td>
                    <?php echo $this->Form->input('thumbnail_slideshow', array('type'=>'file', 'class'=>'inputbox', 'size'=> 40, 'label'=> false)); ?>
              </td>
            </tr>
            <tr>
              <td class="key"><label for="content">Content </label>
              </td>
              <td>
                    <?php echo $this->Editor->loadEditor('data[News][content]'); ?>
              </td>
            </tr>
          </tbody>
        </table>
        </fieldset>
      </div>
      <div class="clr"></div>
      <?php echo $this->Form->input('id', array('type'=>'hidden')); ?>
      <input type="hidden" name="task" value="" />
    </form>
        <div class="clr"></div>
      </div>
      <div class="b">
        <div class="b">
          <div class="b"></div>
        </div>
      </div>
    </div>
